package com.sk.sourcecircle.activity.home.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.fastjson.JSON;
import com.bumptech.glide.Glide;
import com.dyhdyh.widget.loading.dialog.LoadingDialog;
import com.sk.sourcecircle.R;
import com.sk.sourcecircle.base.BaseActivity;
import com.sk.sourcecircle.callback.HandleDataCallBack;
import com.sk.sourcecircle.entity.NoticeDetailsInfo;
import com.sk.sourcecircle.utils.AppApi;
import com.sk.sourcecircle.utils.MyUtils;

import org.sufficientlysecure.htmltextview.HtmlHttpImageGetter;
import org.sufficientlysecure.htmltextview.HtmlTextView;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by sk on 2017/12/26.
 */

public class NoticeDetailsActivity extends BaseActivity implements HandleDataCallBack {


    @BindView(R.id.back)
    ImageView back;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_time)
    TextView tvTime;
    @BindView(R.id.html_text)
    HtmlTextView htmlText;
    @BindView(R.id.item_bg)
    ImageView itemBg;

    private LoadingDialog loadingDialog;
    private int id;

    @Override
    protected int getContentView() {
        return R.layout.activity_notice_details;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        loadingDialog = MyUtils.getLoadingDialog(mContext, false);
        loadingDialog.show();
        id = getIntent().getIntExtra("id", 0);
        AppApi.getNoticeDetails(id, this, 0, this);
        htmlText.setHtml("<p class=\"MsoNormal\" align=\"center\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"><span style=\"text-align: left;\">口红入坑深似海，看见什么都想买！</span><br></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">对于口红控来说，年少不懂事时非常相信</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">商家打出的各种“明星同款”，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">结果买回家上了唇才觉得根本不是那么回事，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">拔干、唇纹凸显、色差严重……<span lang=\"EN-US\" style=\"mso-bidi-font-size:10.5pt\"><o:p></o:p></span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">本期瑞小美就为各位爱美的女生，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">推荐一款集唇膏、唇釉、护唇功能于一体的唇膏——</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">玛丽黛佳惊叹水唇膏！</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">让我们一起看看它是否真的名副其实呢！<span lang=\"EN-US\" style=\"mso-bidi-font-size:10.5pt\"><o:p></o:p></span></font></p><p class=\"MsoNormal\" align=\"center\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\"><span lang=\"EN-US\"><o:p><img src=\"https://ruili-app-17-03-18.oss-cn-shanghai.aliyuncs.com/resources/rl_649951513158568436.jpg\" style=\"text-align: left; font-family: Avenir, Helvetica, Arial, sans-serif; max-width: 100%;\" class=\"\"></o:p></span><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\"> </span><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\">玛丽黛佳这套唇膏一共有</span><span lang=\"EN-US\" style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\">18</span><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\">个色号，</span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">可以单独使用也可以搭配使用，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">瑞小美这次挑选了他们家主打的四个色号，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">光看这个带着口红印的膏体，觉得很有意思！<span lang=\"EN-US\"><o:p></o:p></span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"><span lang=\"EN-US\" style=\"mso-no-proof:yes\"><!--[if gte vml 1]><v:shape id=\"图片_x0020_1\"\n" +
                "o:spid=\"_x0000_i1034\" type=\"#_x0000_t75\" \n" +
                "style='width:414pt;height:271pt;visibility:visible;mso-wrap-style:square'>\n" +
                "<v:imagedata src=\"file://localhost/Users/admin/Library/Caches/TemporaryItems/msoclip/0clip_image005.jpg\"\n" +
                "o:title=\"惊叹水唇膏_质地唇膏头18色_RGB-01\"/>\n" +
                "</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span lang=\"EN-US\"><o:p></o:p></span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span lang=\"EN-US\"><o:p><font size=\"3\"><img src=\"https://ruili-app-17-03-18.oss-cn-shanghai.aliyuncs.com/resources/rl_596221513158632377.jpg\" style=\"text-align: left; font-family: Avenir, Helvetica, Arial, sans-serif; max-width: 100%;\"><font face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"> </font></font></o:p></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\"><img src=\"https://ruili-app-17-03-18.oss-cn-shanghai.aliyuncs.com/resources/rl_197621513159436342.jpg\" style=\"text-align: left; font-family: Avenir, Helvetica, Arial, sans-serif; max-width: 100%;\" class=\"\"></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\"><font size=\"3\"><b>↓↓↓</b></font></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><b style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\"; font-size: 10.5pt;\"><font color=\"#be6b4d\" size=\"4\">脏裸粉</font></b><span lang=\"EN-US\" style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\"; font-size: 10.5pt;\"><b><font color=\"#be6b4d\" size=\"4\">123#</font></b></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\"><img style=\"max-width:100%;\" src=\"https://ruili-app-17-03-18.oss-cn-shanghai.aliyuncs.com/resources/rl_78201513159109457.jpg\"><font face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"><span lang=\"EN-US\"><br></span></font></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"><span lang=\"EN-US\" style=\"mso-no-proof:yes\"><!--[if gte vml 1]><v:shape id=\"图片_x0020_24\" o:spid=\"_x0000_i1033\"\n" +
                "type=\"#_x0000_t75\" style='width:143pt;height:190pt;visibility:visible;\n" +
                "mso-wrap-style:square'>\n" +
                "<v:imagedata src=\"file://localhost/Users/admin/Library/Caches/TemporaryItems/msoclip/0clip_image007.jpg\"\n" +
                "o:title=\"123\"/>\n" +
                "</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><!--[if gte vml 1]><v:shape\n" +
                "id=\"图片_x0020_30\" o:spid=\"_x0000_i1032\" type=\"#_x0000_t75\" \n" +
                "style='width:204pt;height:204pt;visibility:visible;mso-wrap-style:square'>\n" +
                "<v:imagedata src=\"file://localhost/Users/admin/Library/Caches/TemporaryItems/msoclip/0clip_image009.jpg\"\n" +
                "o:title=\"惊叹水唇膏_123\"/>\n" +
                "</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span lang=\"EN-US\"><o:p></o:p></span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">随性自然的色彩，很适合白皮的女生，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">用裸色的奶油来形容它也一点不为过，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">比平常的裸色多了粉，看上去很舒服。</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">在嘴上的效果很美色很正，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">平时裸妆用来提气色真的再好不过了！<span lang=\"EN-US\"><o:p></o:p></span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span lang=\"EN-US\"><o:p><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"> </font></o:p></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\" color=\"#fd6232\" size=\"4\"><b style=\"\">暖阳橙<span lang=\"EN-US\" style=\"\">405#</span></b></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\"><img src=\"https://ruili-app-17-03-18.oss-cn-shanghai.aliyuncs.com/resources/rl_753831513159144227.jpg\" style=\"text-align: left; font-family: Avenir, Helvetica, Arial, sans-serif; max-width: 100%;\"></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\"><font size=\"3\">水润的质地让阳光感更加突出，清新又清透，</font></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\"><font face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">让人一下子就能想到橙子味的水果硬糖</font><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\">，</span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\"><font size=\"3\">给人一种明媚的感觉，元气满满的橙色，</font></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\"><font size=\"3\">一点都不会显黄，非常有质感哦！</font></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span lang=\"EN-US\"><o:p><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"> </font></o:p></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"><font color=\"#c20116\" style=\"\" size=\"4\"><b style=\"\">石榴红</b></font><span lang=\"EN-US\" style=\"\"><font color=\"#c20116\" style=\"\" size=\"4\"><b style=\"\">255#</b></font><font size=\"3\"><o:p></o:p></font></span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\"><img style=\"max-width:100%;\" src=\"https://ruili-app-17-03-18.oss-cn-shanghai.aliyuncs.com/resources/rl_628321513159182259.jpg\"></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\"><font size=\"3\">很娇媚，很有气场的颜色，</font></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">不像正红那么高调但是又不会失去本身的个性，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">兼具高级感和魅惑力。</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">涂了立马出门，和闺蜜喝下午茶都没怎么脱妆，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">显色度和水润感都能好好保持，好喜欢！<span lang=\"EN-US\"><o:p></o:p></span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"><br></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"><b style=\"\"><font color=\"#8f1349\" style=\"\" size=\"4\">浆果红</font></b><span lang=\"EN-US\" style=\"\"><b style=\"\"><font color=\"#8f1349\" style=\"\" size=\"4\">711#</font></b><font size=\"3\"><o:p></o:p></font></span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\"><img style=\"max-width:100%;\" src=\"https://ruili-app-17-03-18.oss-cn-shanghai.aliyuncs.com/resources/rl_222331513159210646.jpg\"></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\"><font size=\"3\">这支好看的浆果色很有女人味，比较好驾驭，</font></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">抹上之后会有一种很妩媚的感觉，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">气场不同于深红的霸气高冷，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">反而因为爆水的效果加入了少女感，</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">带着些许青春叛逆的气息，真的是非常好看。</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"><br></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><img src=\"https://ruili-app-17-03-18.oss-cn-shanghai.aliyuncs.com/resources/rl_749641513334033475.jpg\" style=\"font-size: 16px; text-align: left; font-family: Avenir, Helvetica, Arial, sans-serif; max-width: 100%;\"></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\";\"><font size=\"3\">这么让人心动的水唇膏，</font></span></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">你是不是已经按捺不住自己的心想要入手了？</font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\">赶快来拔草，就可以天天宠幸它们啦！<span lang=\"EN-US\"><o:p></o:p></span></font></p><p class=\"MsoNormal\" align=\"left\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span lang=\"EN-US\"><o:p><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"> </font></o:p></span></p><p class=\"MsoNormal\" align=\"center\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><span lang=\"EN-US\"><o:p><font size=\"3\" face=\"微软雅黑, Apple LiSung Light, Myanmar Sangam MN, Microsoft YaHei\"> </font></o:p></span><span style=\"font-family: 微软雅黑, \"Apple LiSung Light\", \"Myanmar Sangam MN\", \"Microsoft YaHei\"; font-size: medium;\"> </span></p><p class=\"MsoNormal\" align=\"center\" style=\"text-align: center; line-height: 1.8;\" dom-lheight=\"1.8\"><font size=\"3\"><br></font></p><style>", new HtmlHttpImageGetter(htmlText, null, true));

    }

    @OnClick(R.id.back)
    public void onViewClicked() {
        finish();
    }

    @Override
    public void handlerSuccessData(String result, int tag) {
        loadingDialog.cancelDialog();
        NoticeDetailsInfo noticeDetailsInfo = JSON.parseObject(result, NoticeDetailsInfo.class);
        tvTitle.setText(noticeDetailsInfo.getData().getTitle());
        tvTime.setText(noticeDetailsInfo.getData().getCreate_time());
        if (noticeDetailsInfo.getData().getHead_url() != null && noticeDetailsInfo.getData().getHead_url().length() > 0) {
            ;
            Glide.with(mContext).load(noticeDetailsInfo.getData().getHead_url()).into(itemBg);
        } else {
            itemBg.setVisibility(View.GONE);
        }
    }

    @Override
    public void handlerFailData(String failString, int tag) {
        loadingDialog.cancelDialog();
    }

    @Override
    public void handleErrorData(String error, int tag) {
        loadingDialog.cancelDialog();
    }
}
